﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new.aspx.cs" Inherits="AnyOffice.general.meeting.apply._new" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>会议申请</title>
		
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
		<script src="/module/date_selector/popcalendar.js"></script>
		<script src="/aspnet_client/core/function.js"></script>
	<script type="text/javascript" Language="JavaScript">		
		function CheckForm()
		{
			if(document.Form1.ddlRoomId.length == 0)
			{
				alert("请首先添加会议室！");
				return (false);
			}
			
			if (document.Form1.txtName.value=="")
			{
				alert("请指定会议名称！");
				document.Form1.txtName.focus();
				return (false);
			}
			
			/*			
			if (document.Form1.txtTopic.value=="")
			{
				alert("请指定会议主题！");
				document.Form1.txtTopic.focus();
				return (false);
			}
			*/
			
			if(document.Form1.txtStartTime.value == "")
			{
				alert("开始时间不能为空！");
				document.Form1.txtStartTime.focus();
				return (false);
			}
			
			 if(!(checkIsDate(document.Form1.txtStartTime.value) || checkIsDateTime(document.Form1.txtStartTime.value)))
			{
				alert("开始时间不正确！");
				document.Form1.txtStartTime.focus();
				return (false);
			}
			if(document.Form1.txtEndTime.value == "")
			{
				alert("结束时间不能为空！");
				document.Form1.txtEndTime.focus();
				return (false);
			}
			
			 if(!(checkIsDate(document.Form1.txtEndTime.value) || checkIsDateTime(document.Form1.txtEndTime.value)))
			{
				alert("结束时间不正确！");
				document.Form1.txtEndTime.focus();
				return (false);
			}
			
			 if(document.Form1.txtStartTime.value == document.Form1.txtEndTime.value)
			{
				alert("开始时间与结束时间不能相等！");				
				return (false);
			}
			
			return true;		
		}		
		</script>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topMargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<asp:Panel id="pnlMain" runat="server" Width="100%">
				<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
					<tr>
						<td class="tab_ti">
							<span class="big3">
								会议申请(<font size="2">申请之前,请查询“已申请”,“进行中”二种状态的会议,以避免时间冲突</font>)</span>
						</td>
					</tr>
				</table>
				<br>			
				<TABLE width=80%" cellSpacing="0" cellPadding="1" border="0" class="tab_pub" align="center">
					<TR>
						<TD class="ta_bg">名 称：</TD>
						<TD class="ta_txt"><INPUT class="BigInput" id="txtName" type="text" maxLength="50" size="40" name="txtName"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="ta_bg">主 题：</TD>
						<TD class="ta_txt"><INPUT class="BigInput" id="txtTopic" type="text" maxLength="50" size="40" name="txtTopic"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="ta_bg">描 述：</TD>
						<TD class="ta_txt"><TEXTAREA class="BigInput" id="txtDescription" name="txtDescription" rows="2" cols="45" runat="server"></TEXTAREA>
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">申请人：</TD>
						<TD class="ta_txt"><INPUT class="BigStatic" id="txtProposer" readOnly type="text" maxLength="50" name="txtProposer"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="ta_bg">申请时间：</TD>
						<TD class="ta_txt"><INPUT class="BigStatic" id="txtRequestTime" readOnly type="text" maxLength="50" name="txtRequestTime"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="ta_bg">出席人员(内部)：</TD>
						<TD class="ta_txt"><TEXTAREA class="BigStatic fl" id="txtAttendee" name="txtAttendee" rows="3" readOnly cols="45"
								runat="server"></TEXTAREA>
								<INPUT class="bnt_Add fl" title="添加用户" onClick="user_select('Attendee','txtAttendee');" type="button" value="添加"
								name="button">
								<INPUT class="bnt_Del fl" title="清空用户" onClick="clear_double('Attendee','txtAttendee');" type="button" value="清空"
								name="button"><INPUT id="Attendee" type="hidden" name="Attendee" runat="server">
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">出席人员(外部)：</TD>
						<TD class="ta_txt"><TEXTAREA class="BigInput" id="txtGuest" name="txtGuest" rows="3" cols="45" runat="server"></TEXTAREA></TD>
					</TR>
					<TR>
						<TD class="ta_bg">开始时间：</TD>
						<TD class="ta_txt"><INPUT class="BigInput" id="txtStartTime" type="text" maxLength="20" name="txtStartTime"
								runat="server"><IMG style="CURSOR: hand" onClick="popUpCalendar(this,txtStartTime,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0"> <IMG style="CURSOR: hand" onClick="popClock('txtStartTime');" src="/images/menu/clock.gif"
								align="absMiddle" border="0">
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">结束时间：</TD>
						<TD class="ta_txt"><INPUT class="BigInput" id="txtEndTime" type="text" maxLength="20" name="txtEndTime" runat="server"><IMG style="CURSOR: hand" onClick="popUpCalendar(this,txtEndTime,'yyyy-mm-dd','');" src="/module/date_selector/calendar.gif"
								align="absMiddle" border="0"> <IMG style="CURSOR: hand" onClick="popClock('txtEndTime');" src="/images/menu/clock.gif"
								align="absMiddle" border="0">
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">会议室：</TD>
						<TD class="ta_txt">
							<asp:DropDownList id="ddlRoomId" runat="server" CssClass="BigSelect"></asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="ta_bg">通知出席人员：</TD>
						<TD class="ta_txt">
							<asp:CheckBox id="ckbSmsRemind" runat="server" Text="使用内部短信" Checked="True"></asp:CheckBox>
							<asp:CheckBox id="ckbMobileRemind" runat="server" Text="使用手机短信" Visible="False"></asp:CheckBox></TD>
					</TR>
					<TR align="center">
						<TD colSpan="2" class="bnt_con"><INPUT class="BigButton" onClick="return CheckForm();" type="submit" value="确 定">
						</TD>
					</TR>
				</TABLE>
				<BR>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
            </form>
	</body>
</HTML>
